import axios from '@/utils/request'

 import config from '@/common/config'

let base = config.getArcBasePath();

/**-------------------------与后端通讯接口------------------请写在下面-------------------------------------------- */
/**
 * 问题表
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {pageNum:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'主键 主键',title:'标题',categoryId:'分类',askUserid:'咨询人员编号',askPhone:'咨询人员手机号',askUsername:'咨询人员名称',status:'状态0询问中1已回复2已结束',isFaq:'是否常见问题',askDeptid:'询问部门',askDate:'咨询时间',askContext:'问题内容',branchId:'机构编号'}
 **/
 
//普通查询 条件之间and关系  
export const listAqQuestion = params => { return axios.get(`${base}/mdp/arc/aq/aqQuestion/list`, { params: params }); };

//普通查询 条件之间and关系
export const queryAqQuestionById = params => { return axios.get(`${base}/mdp/arc/aq/aqQuestion/queryById`, { params: params }); };

//删除一条问题表 params={id:'主键 主键'}
export const delAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/del`,params); };

//批量删除问题表  params=[{id:'主键 主键'}]
export const batchAddAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/batchAdd`, params); };

//批量删除问题表  params=[{id:'主键 主键'}]
export const batchDelAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/batchDel`, params); };

//修改一条问题表记录
export const editAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/edit`, params); };

//新增一条问题表
export const addAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/add`, params); };

//批量修改某些字段
export const editSomeFieldsAqQuestion = params => { return axios.post(`${base}/mdp/arc/aq/aqQuestion/editSomeFields`, params); };